package org.springblade.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.message.entity.MessageLog;

import java.util.List;

/**
 * 消息记录表 Mapper 接口
 *
 * @author weikun
 * @since 2021-05-08
 */
public interface MessageLogMapper extends BaseMapper<MessageLog> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param message
	 * @return
	 */
	List<MessageLog> selectMessageLogPage(IPage page, MessageLog message);

	/**
	 * 查询部门下用户id
	 *
	 * @param receiveGroup 部门id
	 * @return
	 */
	List<Long> selectUserIdsByDept(Long receiveGroup);

	/**
	 * 查修部门的子部门
	 * @param receiveGroup
	 * @return
	 */
	List<Long> selectDeptTreeIdsByDept(Long receiveGroup);
}
